package com.solotiger.okex.service.impl;

import com.solotiger.okex.dao.UserDao;
import com.solotiger.okex.domain.OkexUser;
import com.solotiger.okex.service.OkexUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Author: Lin.Qiang
 * Date:2018/8/8 0008
 */
@Service
public class OkexUserServiceImpl implements OkexUserService {

    @Autowired
    private UserDao userDao;

    @Override
    public OkexUser findByName(String userName) {
        return userDao.findByName(userName);
    }

    @Override
    public OkexUser findById(Integer userId) {
        return userDao.findById(userId);
    }

    @Override
    public int updateApiKey(String apiKey, String secretKey) {
        return userDao.updateApiKey(apiKey, secretKey);
    }
}
